<%@ page language="java" pageEncoding="us-ascii" contentType="text/html;charset=us-ascii" %>
<%--Copyright (C) 2011 Wolfgang Hankeln, Norma J. Wendel
	 
	This file is part of CDinFusion.
	
	CDinFusion is free software: you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public 
	License in version 3 (LGPL3) as published by the Free Software
	Foundation version 3 of the License.
	
	CDinFusion is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	Lesser General Public License for more details.
	
	You should have received a copy of the Lesser General Public
	License along with CDinFusion; see the file COPYING. If not,
	write to the Free Software Foundation, 59 Temple Place - Suite 330,
	Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
	
	If you have any questions, send an email to: megx@mpi-bremen.de.
--%>
<%System.out.println("<<<<<<<<<<ErrorPage>>>>>>>>>>");%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<style type="text/css">
</style>
<title>Error message</title>
</head>
<%
String origin = (String) request.getAttribute("origin");
String errmsg = "";
if(origin.equals("3a")|origin.equals("3b")|origin.equals("3b1")|origin.equals("3b2")){
	errmsg = (String)request.getAttribute("errmsg");
}
if(origin.equals("2a")|origin.equals("2b")|origin.equals("4_again")){
	errmsg = "Error: please go back in the browser and select a type of report and/or an environmental package!";
}

%>
<body>
<table border="0" width="100%" bgcolor="#2B3990" cellpadding=0 cellspacing=0>
<tr bgcolor="#ffffff">
<td width=250>
<center>
<img height="81" width="250" alt="CDinFusion Logo" src="/CDinFusion/img/logo_small_dark.png"/>
</center>
</td>
</tr>

<tr align="left">    
<td>
<jsp:include page="documentation/navigation.jsp"></jsp:include>
</td>
</tr>

<tr bgcolor="#ffffff">
<td>
<div class="center_div">    
<br>
<%
if(origin.equals("3a") | origin.equals("3b") | origin.equals("3b2")){
	out.println("Error: please go back in the browser and correct it.");
	out.println("<br/>"+errmsg);
}
if(origin.equals("2a")|origin.equals("2b")|origin.equals("4_again")|origin.equals("3b1")){
	out.print(""+errmsg);
}
%>
</div>
</td>
</tr>

<jsp:include page="documentation/bottom_info.jsp"></jsp:include>
</table>
</body>
</html>